package com.zaoqi.provider.Client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(name = "consumer-service")
public interface ProviderFeignClient {

    @GetMapping("/{id}")
    String getData(@PathVariable("id") Integer id);

    @PostMapping
    String postData(@RequestParam("id") Integer id, @RequestParam("value") String value);

    @PutMapping
    String putData(@RequestParam("id") Integer id, @RequestParam("value") String value);

    @DeleteMapping("/{id}")
    String deleteData(@PathVariable("id") Integer id);
}
